package com.student.mapper;

import com.student.bean.User;
import com.student.bean.HealthNews;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface AdminMapper {
    User selectByLogName(@Param(value = "logName") String logName);

    int deleteByPrimaryKey(Integer newid);

    int insert(HealthNews record);

    int insertSelective(HealthNews record);

    HealthNews selectByPrimaryKey(Integer newid);

    int updateByPrimaryKeySelective(HealthNews record);

    int updateByPrimaryKey(HealthNews record);

    void insertNewsAuthor(@Param(value = "newId") Integer newsId,
                          @Param(value = "userId") Integer userId);

    List<HealthNews> allNews();
    
    List<User> allUser();
}
